<template>
  <view>
    <manualAdd :paramete='paramete' @paramsLoaded="onParamsLoaded"></manualAdd>
  </view>
</template>
<script>
import { manualAdd } from "@/components/plugin-uniapp-ruzhi/entryAll/manualAdd/manualAdd";
export default {
  data() {
    return {
      paramete:null
    };
  },
  components:{manualAdd},
  onLoad(e) {
    this.paramete = e
  },
  methods: {
    onParamsLoaded(res) {
      if (res.companyId && res.type !== 1) {
        this.$store.dispatch("company/loadDepSourceAct", res.companyId)
        this.$store.dispatch("company/loadPosSourceAct", res.companyId)
      }
    }
  }
};
</script>
<style lang="scss">
.parse_warp {
  padding: 0 15px;
}
</style>
